package com.example.designprinciple.ocp;

import io.netty.buffer.ByteBufUtil;
import org.apache.tomcat.util.buf.HexUtils;
import org.springframework.util.StringUtils;

import java.math.BigDecimal;

/**
 * @Authors：gaoyang
 * @CreateTime：2021-10-18
 * @Description：Java课程实现ICourse通用接口
 */
public class JavaCourse implements ICourse{

    private Integer Id;
    private String name;
    private Double price;

    public JavaCourse(Integer id, String name, Double price) {
        Id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public Integer getId() {
        return Id;
    }

    public void setId(Integer id) {
        Id = id;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

}
